{% extends 'blog/base.html' %}

{% load comment %}
{% block content %}
    <section id="post-detail">
        <h3>{{ post.title|title }} <small>{{ post.created_at|date:"d F Y" }}</small></h3>
        <pre>{{ post.content|capfirst|safe }}</pre>
        <a href="{% url post_list %}"><code>&lt; Back to list</code></a>
    </section>

    <hr />

    <section id="post-comments">
        {% comment_render_list %}
    </section>

    {% if user.is_authenticated %}
        <section id="post-form">
            {% comment_render_form %}
        </section>
    {% endif %}
{% endblock %}